Skip to content

feat(ste-vec): add term_filters support with integration tests#355

Merged
tobyhede merged 2 commits into
mainfrom
jsonb-term-filters
Jan 29, 2026
Merged

feat(ste-vec): add term_filters support with integration tests#355
tobyhede merged 2 commits into
mainfrom
jsonb-term-filters

Conversation

@tobyhede
Copy link
Copy Markdown
Contributor

Expose term_filters configuration for SteVec indexes, enabling case-insensitive JSON field matching using the downcase filter.

Changes:

  • Add term_filters field to SteVecIndexOpts struct with serde default
  • Update IndexType::SteVec conversion to pass term_filters
  • Add encrypted_jsonb_filtered column to test schema with downcase filter
  • Add helper functions for filtered JSON fixtures (common.rs)
  • Add 7 integration tests covering case-insensitive queries

Note: Term filters apply during encryption, so decrypted data is also transformed (e.g., "Alice" stored/returned as "alice").

Acknowledgment

By submitting this pull request, I confirm that CipherStash can use, modify, copy, and redistribute this contribution, under the terms of CipherStash's choice.

Expose term_filters configuration for SteVec indexes, enabling
case-insensitive JSON field matching using the downcase filter.

Changes:
- Add term_filters field to SteVecIndexOpts struct with serde default
- Update IndexType::SteVec conversion to pass term_filters
- Add encrypted_jsonb_filtered column to test schema with downcase filter
- Add helper functions for filtered JSON fixtures (common.rs)
- Add 7 integration tests covering case-insensitive queries

Note: Term filters apply during encryption, so decrypted data
is also transformed (e.g., "Alice" stored/returned as "alice").
Copy link
Copy Markdown
Contributor

@auxesis auxesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see the increased coverage, thanks @tobyhede.

@tobyhede tobyhede merged commit 32df58e into main Jan 29, 2026
5 checks passed
@tobyhede tobyhede deleted the jsonb-term-filters branch January 29, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants